

<div id="content">
				<!-- main news -->
				<div >
					<div id="page-title">
						<?php echo  $data[$uses[0]]['title']?>
						
						
					</div>
												
					
					<div class="image-navigator">
						<?php if(isset($prevdata))
								echo '<div class="nav-prev"><a href="'.$this->Seo->link('/images/detail/'.$prevdata[$uses[0]]['id']).'" title="'.$prevdata[$uses[0]]['title'].'"><< Hình trước</a></div>';
								else echo '<div class="nav-prev">&nbsp;</div>';
							echo '<div class="nav-back"><a href="'.$this->Seo->link('/images/index/'.$catdata[$uses[1]]['id']).'" title="Quay về '.$catdata[$uses[1]]['title'].'">'.$catdata[$uses[1]]['title'].'</a></div>';
							if(isset($nextdata))
								echo '<div class="nav-next"><a href="'.$this->Seo->link('/images/detail/'.$nextdata[$uses[0]]['id']).'" title="'.$nextdata[$uses[0]]['title'].'">Hình sau >></a></div>';
						?>						
						<div style="clear:both;height:20px;"></div>
					</div>
									
					<div id="main-news-description">
					<center>
					<img alt="<?php echo $data[$uses[0]]['title']?>" src="<?php echo empty($data[$uses[0]]['image'])?$this->webroot.'img/thumb_noimg.jpg':$this->webroot.'uploaded/'.$uses[0].'/large/'.$data[$uses[0]]['image'];?>" />
					</center>
					</div>
					
					<div class="image-navigator">
						<?php if(isset($prevdata))
								echo '<div class="nav-prev"><a href="'.$this->Seo->link('/images/detail/'.$prevdata[$uses[0]]['id']).'" title="'.$prevdata[$uses[0]]['title'].'"><< Hình trước</a></div>';
								else echo '<div class="nav-prev">&nbsp;</div>';
							echo '<div class="nav-back"><a href="'.$this->Seo->link('/images/index/'.$catdata[$uses[1]]['id']).'" title="Quay về '.$catdata[$uses[1]]['title'].'">'.$catdata[$uses[1]]['title'].'</a></div>';
							if(isset($nextdata))
								echo '<div class="nav-next"><a href="'.$this->Seo->link('/images/detail/'.$nextdata[$uses[0]]['id']).'" title="'.$nextdata[$uses[0]]['title'].'">Hình sau >></a></div>';
						?>						
						<div style="clear:both;height:20px;"></div>
					</div>
					
					
					<div>
						<div style="float:left;"><g:plusone size="medium" annotation="none"></g:plusone></div>
						<div style="float:left;margin-left:10px;" class="fb-like" data-href="<?php echo $this->Seo->link('/images/detail/'.$data[$uses[0]]['id']);?>" data-send="false" data-layout="button_count" data-width="10" data-show-faces="true"></div>
						<div  id="fbfacepile">
							<fb:facepile href="<?php echo $this->Seo->link('/images/detail/'.$data[$uses[0]]['id']);?>" width="300" max_rows="1"></fb:facepile>
						</div>
						<div style="clear:both;height:5px;"></div>
					</div>	
					
					<br />				
					<div class="fb-comments" data-href="<?php echo $this->Seo->link('/images/detail/'.$data[$uses[0]]['id']);?>" data-num-posts="<?php echo $webConfig['fbCommentNop']?>" data-width="650"></div>				
					<div id="fb-root"></div>
					
					<div style="clear:both;height:20px"></div>
				</div>	
				
				<div style="clear:both;"></div>
				
				<div style="clear:both;height:20px"></div>
</div>



<script type="text/javascript">
//google
(function() {
  var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
  po.src = 'https://apis.google.com/js/plusone.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
//facebook
//for fb
var accessToken;
var uid;
window.fbAsyncInit = function() {
    FB.init({
      appId      : '204609776328294', // App ID
      status     : true, // check login status
      cookie     : true, // enable cookies to allow the server to access the session
      xfbml      : true  // parse XFBML
    });


    

    

    
  };

 
  (function(d){
      var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
      js = d.createElement('script'); js.id = id; js.async = true;
      js.src = "//connect.facebook.net/en_US/all.js";
      d.getElementsByTagName('head')[0].appendChild(js);
    }(document));

</script>